import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:sainbainu/common/values/colors.dart';

class Cell extends StatelessWidget {
  const Cell({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 40,
      padding: const EdgeInsets.symmetric(horizontal: 15),
      child: const Row(
        children: [
          Expanded(
            flex: 1,
            child: Text(
              '消费',
              textAlign: TextAlign.left,
              style: TextStyle(
                fontSize: 14,
                color: AppColors.active,
              ),
            ),
          ),
          Expanded(
            flex: 3,
            child: Text(
              '2024-03-16',
              textAlign: TextAlign.center,
              maxLines: 1,
              overflow: TextOverflow.ellipsis,
              style: TextStyle(
                fontSize: 14,
                color: AppColors.unactive4,
              ),
            ),
          ),
          Expanded(
            flex: 2,
            child: Text(
              '支付宝',
              textAlign: TextAlign.center,
              style: TextStyle(
                fontSize: 14,
                color: Color(0xFFB886F8),
              ),
            ),
          ),
          Expanded(
            flex: 2,
            child: Text(
              '88.00读币',
              maxLines: 1,
              overflow: TextOverflow.ellipsis,
              textAlign: TextAlign.right,
              style: TextStyle(
                fontSize: 14,
                fontWeight: FontWeight.w500,
                color: Color(0xFFCBA43F),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
